<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生表格</title>
    <!-- 引入Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div class="container mt-5">
    <h2>学生信息表</h2>
    <a href="add.jsp">添加学生信息</a>
    <table class="table table-striped">
        <thead>
        <tr>
            <th scope="col">姓名</th>
            <th scope="col">职称</th>

        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="a">
            <tr>
                <td>${a.tname}</td>
                <td>${a.zhicheng}</td>
            </tr>
        </c:forEach>

        <!-- 你可以继续添加更多的学生信息 -->
        </tbody>
    </table>
</div>

<!-- 引入Bootstrap Bundle JS (包含了Popper) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>